package panel.help
{
	import flash.display.Sprite;
	import flash.display.Stage;
	
	import assists.Lang;
	import assists.SizeManager;
	import assists.URI;
	import assists.resource.ResourceLoader;
	
	import inerface.IHelp;
	
	import panel.viewSpots.navigation.BtnClouree;
	
	public class HelpPanel extends Sprite implements IHelp
	{
		private var _stage:Stage;
		private var _loader:ResourceLoader;
		private var _lang:Lang;
		private var _uri:URI;
		
		private var _container:Sprite = new Sprite();
		public function HelpPanel()
		{
			super();
		}
		
		public function init(stage:Stage, loader:ResourceLoader, lang:Lang, uri:URI=null):void
		{
			_stage = stage;
			_loader = loader;
			_lang = lang;
			_uri = uri;
			
			_container.y = SizeManager.UpGuideHeight;
			this.addChild(_container);
		}
		
		public function show(dataList:Array):void
		{
			
			
			for(var i:int=0;i<dataList.length;i++)
			{
				var box:BtnClouree = new BtnClouree();
				box.label(dataList[i].desc,22);
				box.width = _stage.stageWidth * 0.9;
				box.height = _stage.stageHeight * 0.2;
				box.x = _stage.stageWidth * 0.05;
				box.y = box.height * 1.2 * i;
				box.onCallBack = dataList[i].func;
				_container.addChild(box);
			}
			
		}
		
		public function clear():void
		{
		}
	}
}